<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
        PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>

    <settings>
        <!-- 这个配置使全局的映射器启用或禁用缓存 -->
        <setting name="cacheEnabled" value="false"/>
        <setting name="mapUnderscoreToCamelCase" value="true"/>
        <setting name="useGeneratedKeys" value="true"/>
        <setting name="safeRowBoundsEnabled" value="false"/>
        <setting name="defaultExecutorType" value="REUSE"/>
        <!-- 设置超时时间，它决定驱动等待一个数据库响应的时间 -->
        <setting name="defaultStatementTimeout" value="600"/>
    </settings>


    <typeAliases>
      {{#aliases}}
      <typeAlias type="{{typeFullName}}"     alias="{{typeName}}"/>
      {{/aliases}}
    </typeAliases>

    <typeHandlers>
    </typeHandlers>

    <mappers>
      {{#mappers}}
      <mapper resource="{{mapperXmlPath}}"/>
      {{/mappers}}
    </mappers>


</configuration>
